package com.ttx.pattern.example.builder.variant;

/**
 * @author TimFruit
 * @date 2019/7/2 15:07
 */

public class Client {

    public static void main(String[] args){

        Person person=new Person.Builder("tim").setAge(11).setHeight(168).setAddress("中国好声音").build();

        System.out.println("person: ");
        System.out.println("name: "+person.getName());
        System.out.println("age: "+person.getAge());
        System.out.println("height: "+person.getHeight());
        System.out.println("address: "+person.getAddress());
    }
}
